package Song.Han.Demo02;

import java.io.FileInputStream;
import java.io.IOException;

/*
    从硬盘文件中读取数据
*/
public class Demo01InputStream {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("E:\\IDeaProject\\Day14\\src\\Song\\Han\\Demo01\\a.txt");
        int len = fis.read();
        System.out.println(len);//97

        len = fis.read();
        System.out.println(len);//-1  表示已经读取到了末尾

        fis.close();
    }
}
